dig (someone) out of a hole

Translations
tirer quelqu'un d'une mauvaise passe
Definitions
To help someone out of a difficult or problematic situation, often by providing assistance, support, or a solution.